package Demo2;

/**
 * @Author: Lenovo
 * @Date: 2024/5/17 14:30
 * @description:
 */
public class Derived extends Base {
    int a=10;

    public void method(){
       // System.out.println(a);
        System.out.println("子类的a："+this.a);
        System.out.println("父类的a："+super.a);
        System.out.println(b);
//        System.out.println(c);
    }

    public static void main(String[] args) {
        Derived derived=new Derived();
        derived.method();
    }
}
